﻿using Hotel.Model.Admin;
using Hotel.Model.Discount;
using Hotel.Model.House;
using Hotel.Model.Member;
using Hotel.Model.Store;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.DAL
{
    public class MyDBContext : DbContext
    {
        public MyDBContext(DbContextOptions options) : base(options)
        {
        }
        //管理员模块
        public DbSet<T_Admin> T_Admin { get; set; }

        //会员模块
        public DbSet<T_Member> T_Member { get; set; }
        public DbSet<T_Member_Level> T_Member_Level { get; set; }
        public DbSet<T_Member_Right> T_Member_Right { get; set; }
       
        // 等级权益表  关系表
        public DbSet<T_Level_Right> T_Level_Right{ get; set; }

        //门店
        public DbSet<T_Store> T_Store {  get; set; }
        public DbSet<T_Store_Member> T_Store_Member {  get; set; }


        //优惠券
        public DbSet<T_Discount_Type> T_Discount_Type { get; set; }
        public DbSet<T_Discount> T_Discount { get; set; }

        public DbSet<T_Discount_Member> T_Discount_Member { get; set; }


        //房间

        public DbSet<T_House_Type> T_House_Type { get; set; }
        public DbSet<T_House_State> T_House_State { get; set; }
        public DbSet<T_House_No> T_House_No { get; set; }
        public DbSet<T_House_Price> T_House_Price { get; set; }


    }
}
